package com.cc.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Book implements Serializable {
    private static final long serialVersionUID = -1721637104953233800L;
    //书籍编号
    private int bookID;
    //书籍名称
    private String bookName;
    //作者
    private String author;
    //出版时间
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date publishDate;
    //价格
    private BigDecimal price;
    //书籍类型
    private BookType bookType;
}
